class Anmial:
    name='anmial'
    def shout (self):
        print('anmial shout')

anmial = Anmial()
print(anmial.name)
anmial.shout()

class Dog:
    name='dog'
    def __init__(self):
        self.age=10
    def eat(self):
        print('dog eat')

dog = Dog()
print(dog.name)
dog.eat()

dog1=Dog()
print(dog1.name)
print(Dog.name)

Dog.name='_ddd1'
print(dog1.name)
print(Dog.name)

Dog.name='_dd2'
print(dog1.name)
print(Dog.name)
print('----------')
# 实例属性调用
dog2=Dog()
print(dog2.name)
print(dog2.age)